﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using BrokerBase.Lib.Client;

namespace BrokerBase.Lib.Tool
{
    public static class EditionUtil
    {
        private static IEdition[] editions = new AbstractEdition[5] { new TrialEdition(), new EvaluationEdition(), new StandardEdition(), new ProfessionalEdition(), new AdvanceEdition() };

        public static IEdition[] GetEditions()
        {
            return editions;
        }

        public static IEdition GetEditionByEnum(EditionType type)
        {
            return editions.FirstOrDefault(p => p.EditionType == type);
        }
    }
}
